/***********************************************************************/
/*                                                                     */
/*   svm_classify.c                                                    */
/*                                                                     */
/*   Classification module of Support Vector Machine.                  */
/*                                                                     */
/*   Author: Thorsten Joachims                                         */
/*   Date: 02.07.02                                                    */
/*                                                                     */
/*   Copyright (c) 2002  Thorsten Joachims - All rights reserved       */
/*                                                                     */
/*   This software is available for non-commercial use only. It must   */
/*   not be modified and distributed without prior permission of the   */
/*   author. The author is not responsible for implications from the   */
/*   use of this software.                                             */
/*                                                                     */
/************************************************************************/

#if !defined(__SVM_CLASSIFY_H__)
#define __SVM_CLASSIFY_H__

#ifdef __cplusplus
extern "C" {
#endif

# include "svm_common.h"

#ifdef __cplusplus
}
#endif
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>

#define SVM_LIGHT_MAX_WORDS	1024
class SVMClassifier
{
	MODEL *m_model;
	WORD m_words[ SVM_LIGHT_MAX_WORDS ];
public:
	SVMClassifier();
	SVMClassifier(const SVMClassifier &obj);
	double classify(std::string label, std::string  feature);
	double classify( std::string  feature);
	void loadModel(std::string fileName);
	virtual ~SVMClassifier();
	void setParamters( long *, long * );
	void read_input_parameters(int, char **, char *, char *, char *, long *, long *);
	void print_help(void);
};


#endif

